/**
 * @param {string} firstWord
 * @param {string} secondWord
 * @param {string} targetWord
 * @return {boolean}
 */
 var isSumEqual = function(firstWord, secondWord, targetWord) {
    let x = '', y = '', z = ''
    firstWord.split('').forEach(item => {
        x += (item.charCodeAt(0) - 97).toString()
    })
    secondWord.split('').forEach(item => {
        y += (item.charCodeAt(0) - 97).toString()
    })
    targetWord.split('').forEach(item => {
        z += (item.charCodeAt(0) - 97).toString()
    })
    return Number(x) + Number(y) === Number(z)
};